import Vue from 'vue'
import Router from 'vue-router'
//@ 表示的是src目录
import HelloWorld from '@/components/HelloWorld'
import Hello from '../components/Hello';
import Js from "../components/Js.vue";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    { //配置的一组路由
      path: '/hello',
      name: 'Hello',
      component: Hello
    },
    {
      path: '/js',
      name: 'Js',
      component: Js
    }
  ]
})
